#ifndef  Z_camera
#define  Z_camera

#include"stdafx.h"
class safecamera{
public:
    inline safecamera();
    inline void Draw(CDC* pDC);
    inline void Setposation(int x,int y);
    inline void Getposation(int &x,int &y) const;
    inline virtual void getView();
    inline virtual void serView();
private:
    CBitmap m_bitmap;
    int X,Y;
};

safecamera::safecamera(){
    
}

void safecamera::Draw(CDC *pDC){
    m_bitmap.LoadBitmapW(IDB_BITMAP1);
    CDC MemDC;
    MemDC.CreateCompatibleDC (pDC);
    //CBitmap* pOldBitmap = 
    MemDC.SelectObject(&m_bitmap);
    pDC->BitBlt(X,Y,50,50,&MemDC,0,0,SRCCOPY);
}

void safecamera::Setposation(int x, int y){
    X = x;
    Y = y;
}

void safecamera::Getposation(int &x,int &y) const{
    x = X;
    y = Y;
}

void safecamera::getView(){
}

void safecamera::serView(){
}


#endif
    